<!-- 基本属性信息 -->
<template>
    <el-form label-width="120px" size="small">
        <el-row>
            <el-col :span="24">
                <img :src="monitorPic" />
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="12">
                <el-form-item :label="$t('终端名称')+':'">
                   {{ editorForm.name | unknowVal(te) }}
                </el-form-item>
                <el-form-item :label="$t('所属分组')+':'">
                    {{ editorForm.groupName | unknowVal(te) }}
                </el-form-item>
                <el-form-item :label="$t('联网IP')+':'">
                    {{ editorForm.connectIp | unknowVal(te) }}
                </el-form-item>
                <el-form-item :label="$t('硬件版本')+':'">
                    {{ editorForm.hwVersion | unknowVal(te) }}
                </el-form-item>
                <el-form-item :label="$t('软件版本APP')+':'">
                    {{ editorForm.swVersion | unknowVal(te) }}
                </el-form-item>
                <el-form-item :label="$t('软件版本KNL')+':'">
                    {{ editorForm.knlVersion | unknowVal(te) }}
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item :label="$t('MAC地址')+':'">
                    {{ editorForm.macText | unknowVal(te) }}
                </el-form-item>
                <!-- <el-form-item :label="$t('型号')+':'">
                    {{ editorForm.model | unknowVal(te) }}
                </el-form-item> -->
                <el-form-item :label="$t('终端IP')+':'">
                    {{ editorForm.lanIp | unknowVal(te) }}
                </el-form-item>
                <el-form-item :label="$t('安装位置')+':'">
                    {{ editorForm.location | unknowVal(te) }}
                </el-form-item>
                <el-form-item :label="$t('软件版本CFE')+':'">
                    {{ editorForm.cfeVersion | unknowVal(te) }}
                </el-form-item>
                <el-form-item :label="$t('资源服务地址')+':'">
                    {{ editorForm.resServer }}
                </el-form-item>
            </el-col>
            <el-form-item :label="$t('终端服务地址')+':'">
                {{ editorForm.apiServer }}
            </el-form-item>
        </el-row>
    </el-form>
</template>

<script>
export default {
    name: "BasicSetInfo",
    data() {
        return {
            tableData: [],
            monitorPic: require('../../images/monitoring.gif')
        }
    },
    props: {
        editorForm: {
            default:{}
        }
    },
    methods:{
        te(arg) {
            const hasKey = this.$te(arg)
            if (hasKey) {
            const result = this.$t(arg)
            return result
            }
            return arg
        },
    }
}
</script>
